shared: remove invalid null checks for get/remove

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