Fixes NPE on local avatar or status update in the chat when system messages are present.