Fixed if statements in EventsController delete.