Fix free of null pointer when key is not found

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