Added a check for the presence of the event before getting the current-language in it
Added default error pages