make: Ignore check-function when there is no image

Signed-off-by: Fabian Deutsch <fabiand@redhat.com>