protocol: Avoid NULL dereference

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>