git-stash.sh: fix flawed fix of invalid ref handling (commit da65e7c1)