Fixed case of alarm page not redirecting to error page

Reported by Konag