perf_hooks: fix checking range of options.figures in createHistogram
#45999
+8
−2
options.figures in createHistogram
#45999