Fix OPAL-1783: Exception when indexing a table