Prevent potential packet NPEs

To fix some potential NPEs.

http://openeye.openmods.info/crashes/b8d492832c729c2e8ae1a49acea28c1f