clear window file path when there's no active view
Differential Revision: https://phabricator.kde.org/D6529
(cherry picked from commit 9f811e437d4220782c87d46c50269e63009d72de)