Don't get selection if no active element

Fixes #694.

Previously, it could be that there was an active element that was removed in between mousedown and mouseup.
Merge pull request #771 from spicyj/gh-694

Don't get selection if no active element