Fixed the bug that terminal quit when current workspace haven't any child-process.