Fix for IIS: REQUEST_URI is not always available