Issue #3107295 by kirankumar.psb, btopro, wolffereast: Fix class name must be a string in entity_get_controller
Closes #3107295