Fix error thrown on missing event