[[ Bug 11018 ]] prevent crash when opening a rotated referenced image wi...

...th an invalid filename