HDF: Fix number parsing bug

Fixed bug when parsing didn't stop when end of node was encountered.