Fix error Undefined variable: class in Zend/ModuleManager/Listener/ServiceListener.php
Add parens for ternary operator
Merge branch 'hotfix/4957'

Close #4957