Check that safari tab and window are non-null.
Fixes #49.
Merge branch 'master' of github.com:beardedspice/beardedspice