[testsuite] Fixed small issue in range index tests.
[bugfix] Check for potential overflow in symbol table before data is stored to prevent corrupted documents. Give user a chance to remove the (probably bad) data.