Adds some sanity checks in PacketEvent.setPacket().

Thanks libraryaddict. :)