Add in null protection for client/server sides of handleChat

Adds the ability to cancel a chat message by setting packet (or the string message within it) to null