fixed problem with views.py that occurs when no events exist