rawspeed: preliminary fix for #9752

I received this fix from Klaus Post
(cherry picked from commit bbbe081c1ced5d9426793e0b1ddf8060a2ab849d)