vcs: don't crash if submodule checkout failed

https://bugzilla.gnome.org/show_bug.cgi?id=728366