Make sure the current data object isn't orphaned before indexing.