Fixing issue #997

...by setting REQUEST_URI to a blank value, so that exception is not thrown here: https://github.com/zendframework/zf2/blob/master/library/Zend/View/Helper/ServerUrl.php#L59
Merge pull request #1187 from tad3j/patch-1

Fixing issue #997