[[ Bugfix 11522 ]] Crash when getting the filename of an image which references a file that does not exist.