Fix for issue #4103

Fix for https://github.com/zendframework/zf2/issues/4103