Throw an exception if a picture claims to have a negative amount of data. Should avoid problem in bug #41357