stash: fix accidental apply of non-existent stashes