core: Fix coverity issue - possible NPE

Coverity found a possible null object dereference in a recent live merge
patch.  Even though business logic would prevent it from occurring,
fixing it will make coverity happy.

Change-Id: I90b8b8caf8b506f1ba5f3dfc0604cce523e87cac
Signed-off-by: Greg Padgett <gpadgett@redhat.com>