Fix detecting and opening 404 error page