Avoid error-ing out when shell provides a valid focused app but no window.
Fixes inconsistent indentation
Fix syntax error (missing closing bracket)
Merge pull request #22 from danielkza/fix-null-window

Avoid error-ing out when shell provides a valid focused app but no matching window