fix issue getting PsiFile when cursor is not in an editor. fixes #7