Fixes NullPointerException when running UnlockImage without image.