If a focused sheet has no parent there is no focused window.

Fixes #29