Tweak 404 and 500 to not reference non-existent stylesheets

This is all in the hope of getting sensible logs from heroku.

# What's changed
* Handle 404 on document not found (instead of 500 error)
* Remove stylesheet reference to things that didn't exist