magit-display-process: don't show progress if process has terminated

Close #996.
Merge branch 'pr/fix-display-process'