Update git_gutter_handler.py

Save buffer to file with right encoding as it would be save by ST2
Remove a break that shouldn't be there, fixes #35
Don't run when there is no active view for window

Sometimes GitGutter tries to run when there is no active window
and it throws an error because self.view is None.
I have only been able to reproduce this in the following scenario:
you clicked on FileA in the sidebar (FileA is not previously open)
not to open it but to preview it. While previewing it you press
ctrl+` to open a console. With the console selected and the
unopened FileA preview showing in the window you click on another
unopened file, FileB to preview that file. There will be no active
window at this time and GitGutter will throw an error. So we can
just skip running this time because immediately after selecting
FileB, focus will shift from the console to its preview. This will
cause GitGutter to run again on the FileB preview.
Wow that was a really long explanation.
Merge branch 'git_gutter' into feature/merge_upstream
Merge branch 'feature/merge_upstream' into develop
Merge branch 'release/upstream_changes'