Bug 1067340 follow-up: null check the inner window r=bustage

Landed on a CLOSED TREE