Fixed a couple of PHP Errors when no events are excluded