[Fixes bug #1181679] Fix crash when leaving the Move Selected Pixels tool with no open documents.