protection: avoid segfault on unknown event