Fix possible error in production

I was trying the error pages in production and it seems the 'request' key may sometimes be missing. So I suggest we use get as a safer way of getting the request.

Merge request reports

Loading