fixed null player crash in packet handler