Fixes various 404 page bugs

Also solves #3403 

cc: @aaronschachter