Fixes bug with calendar not appearing on first load with no events in the database.