Bug 913855.  Fix consumers of window mediator to be more consistent in their checking for closed windows.  r=dolske

Note that we can't just stop returning closed windows from the window
mediator, because some consumers (e.g. session restore) rely on seeing
closed windows in the list so they can remove them from their internal
data structures expeditiouly.