Don't return text content if started just before a rejected node
Don't return text content if started inside a rejected subtree

This brings the getNodeInRange filter behaviour inline with existing
PositionIterator logic.