fixes AttributeError: 'NoneType'... when views are activated via the `Goto Anything` palette

don't run git_gutter in a view if it has no window: fixes AttributeError: 'NoneType'... when views are activated via the `Goto Anything` palette