Fixed crash when using Properties dock after closing all maps

When the last map was closed, the Properties dock would not get cleared
as appropriate, and trying to interact with it was causing a null
pointer dereference.