Allow empty event directives (fixes #1369)