Bugfix: Writing XPaths with predicates did not work if writing target
was part of the selector.