power: bq2419x: correctly check for thermal profile data
The number of entry for temp range on DT node is counted
using of calls. If there is no entry then it returns -ve
error. Taking care of -ve returns on the entry count.
This will avoid the wrong error message as:
bq2419x 1-006b: voltage thermal profile is not correct