Fix crash when opening a document after closing the previous one
Steps to reproduce:
- Open a document
- Open "Specific Color Selector"
- Press Ctrl+W
- Try to open the document again
(crash)
That happened because the canvas was not unregistered from
the dockers on closing and they were still holding
pointers to it.