Fixes various 404 page bugs

Also solves #3403 

cc: @aaronschachter 
Picky, but lets remove this comment since its not applicable anymore.