Reverted code from data.index()

Removed checking of empty versions from index().