[C] Fix #22, apply error checking in hdr_percentiles_print.