Fixes #204 and #153.

Makes sure ```this.range``` is defined when calling ```selection.getContaining``` and ```selection.placeMarkers```. Also makes sure the current selection is inside the scribe element before placing markers. Fixes #204 and #153.
Okay - that looks like a good case. I'm happy with this branch if @theefer is. See no reason not to merge this in.