core: coverity issue fix.

- inlined variable, which can be null from static analysis point of
view, but such scenario would be a bug in system. Inlining variable
should convince coverity not to consider this as a problem.

Change-Id: I6751881c8b72e400f898ddd631b34106742db3b8
Signed-off-by: Martin Mucha <mmucha@redhat.com>