Bug #3198: If the import fails the image name cannot be clicked

(cherry picked from commit 4c8531bf64cb42c299546d21e1df1f7eb905f666)