Bug 721135 - Unable to export to .png - error: known incorrect sRGB profile

Some libpng errors can safely be marked as nonfatal, which is much
better than simply failing in those cases.

Thanks to John Bowler for pointing out this solution.

(cherry picked from commit 7c493f76f836095adad08205fdfd4522e05e0bd4)