ScanR: clear the pixel buffer when an invalid TIFF is found (rebased onto develop)



This is the same as gh-509 but rebased onto develop.

----

This prevents ```openBytes``` from returning garbage data when the real pixel data is missing.

/cc @chris-allan