commit: Fix segfault on async writes if object exists and checksum requested
commit: Fix segfault on async writes if object exists and checksum requested

If an object already existed and we somehow tried to pull it, the
caller would still expect a returned checksum.

This appears to happen with static deltas for some reason; we might be
including duplicate metadata objects.  Regardless, this is a bug that
should be fixed.

resin-io/ostree,resin-io/ostree,GNOME/ostree,GNOME/ostree,leandrosansilva/ostree,resin-io/ostree,gatispaeglis/ostree,sujitfulse/ostree,sujitfulse/ostree,resin-io/ostree,leandrosansilva/ostree,gatispaeglis/ostree,sujitfulse/ostree,sujitfulse/ostree,GNOME/ostree,gatispaeglis/ostree,GNOME/ostree,gatispaeglis/ostree,leandrosansilva/ostree,leandrosansilva/ostree,GNOME/ostree,sujitfulse/ostree,resin-io/ostree,gatispaeglis/ostree,leandrosansilva/ostree,gatispaeglis/ostree