Fixed logic change and potential break.
Fixed logic change and potential break.

weierophinney/zend-servicemanager,matwright/zend-servicemanager,prolic/zend-servicemanager,akrabat/zend-servicemanager,MadCat34/zend-servicemanager