Added conditonals to fix errors when there is no next event
Merge branch 'master' of github.com:wd42/wd42-wagtail