Fixed bug: Tool windows could not be closed (moved on windows as well) when there are no pages.