detached-stash: work around git rev-parse failure to detect bad log refs