Fix indexing when adding rows to AbstractRemoteDataSource (#13334)

Change-Id: Ifa7c8dacb71d2f6ff612e3801b869652fa0a7bc7