selection: ensure that `this.range` is defined

In `getContaining()` and `placeMarkers()` functions.

Prevents uncaught errors as described in #204.
How important is this fix for you? Up until now I was happy to leave it as a gentle reminder we need to tidy this up.