nits

Fixes to some nits:

 * one warning removed in git_object.dart
 * check for null when restoring the workspace

@gaurave @keertip