Making Triggers* functions robust to certain programming errors