s4-messaging ensure we do not segfault on a NULL msg context in cleanup