kexec: avoid freeing NULL pointer in image_crash_alloc()