doesElementContainSelection: Fix extraneous code execution.