[[Bugfix 12153]] Prevent crash when setting the cursor to an image that ...

...references an image file that is not present