Fix issue when Table iterator reached the end
Fix issue when Table iterator reached the end

Change-Id: Ic24bc9efd7dbadc7bab2816af8ff807a7ba18d97

realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core