detect when ngEventDirectives are bound to undefined functions