Fix bug 1109289

The only problem with this change is that if an event has a vidly_template but not a vidlysubmission things can go wrong but I don't know if such situation is possible