Solve error with stash apply when there's no git stash.