Fixed NPE when ToolWindow had not yet been initialised (#82).