fixed a bug in calendar of events

had to delete a buggy event from the database and also inserted a line
of code in events controller to prevent buggy data from causing a crash