WindowRef can now be compared to Nil

If a WindowRef = Nil then the window it represented has been closed.