Prevent NPEs when working with server-side messages