8163258: Getting NullPointerException from ImageIO.getReaderWriterInfo due to failure to check for nullReviewed-by: prr, psadhukhan