fixed a bug where events without deadlines and start dates would break the frontend