Fix stashing not working when Kate is quit using Ctrl+Q

Merged Waqar Ahmed requested to merge work/stash-fix into master

Merge request reports