[libpng15] Check validity of "nentries" parameter of png_set_sPLT().

and check validity of "num_text" parameter of png_set_text_2().
[libpng15] Imported from libpng-1.5.14rc03.tar
Merge remote-tracking branch 'origin/libpng15' into libpng15-ssse3