It's not just that the image had a non-sRGB colorspace, it's also that the pixel values in this specific image were out of the expected range.
Testing combinations of edges is not so common/obvious.