Hotfix for canvas crashing on closing when having more than one document open.
Let's make sure the canvas we're setting `null` is the right one, shall we? :) This should solve the crash without reintroducing the soft-lock on graphics acceleration changes. BUG:424787
Showing with 4 additions and 3 deletions