Fix for selection box dragged out of canvas.

Fix for User gets stuck in selection mode when selection box is dragged
out of canvas.