It's fine if you don't, it's just strange that MSPaint and the like have no issue loading it, though.
Seems like ImportImageFromInputFile doesn't set a specific error code anywhere, so it's not easy to figure out it's 16-color.
I've implemented a check that'll get the bit depth by skipping past the PNG header.