GenericReader: better handling of black and error

Closes https://github.com/MrKepzie/Natron/issues/167