Fixed crash on multiple cancel button presses.

Fixed a crash if the cancel button was pressed multiple times while a selection was still spinning.