[libpng17] Removed a redundant test in png_set_IHDR().