Fixed problem with reopening plot windows

The action was not properly removed from the Window menu when a plot
window was closed. This prevented it being added to the menu again when
it was opened again.