Fix for issue 4993

https://github.com/zendframework/zf2/issues/4993