It would be better to have fallback in the case "CHtml::$modelNameFilter" is not nul but also not callable.
In this case an exception shold be thrown informing developer he did something wrong.