Fixing null pointer exception in packet handler

Change-Id: Ibd8f700af3fc4330d461ada31757bb5eaa0da896
Signed-off-by: Colin Dixon <colin@colindixon.com>