Don't pass offset: 0 to getObject() for non-collections
Don't pass offset: 0 to getObject() for non-collections

Fixes #2855.

Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code