core: moved repeated null value check.

The null value check of the relevant disk image repeated itself and
left a chance for an NPE - now it's done within the called method.

Change-Id: I3e4958c9dc108dc6d44e25a5074439e6ec018c12
Signed-off-by: Liron Aravot <laravot@redhat.com>