Fix coverity warning in RangeTable

Fixes #1086