core: clarify conditional expression in checkImageValidity

Add indentation and parenthesis to improve readability.

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