Added back reference to the app for eror handling.

I had removed it earlier, forgetting that the 404 route needs a
reference.  Dur.  :-\