Fix occasional crash when reading no data value