[[ Bug 13097 ]] Image filename is never nil; check for emptiness instead
Merge pull request #990 from runrevali/bugfix-13097

[[ Bug 13097 ]] Image filename is never nil; check for emptiness instead