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

Thanks for spotting this problem, Gary! My bad.