[Bug 49118] env.c:get_image_path() de-reference null pointer