Fixed bug with EventsViewController when the app is launched with empty database.