[DB2] Fix error on named index removing

This pull request fix and error when a name index is reverted.