shared/frame: NULL check before attempting to deref

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>