MODE-1750  FullTextSearch Left/Right outer join invalid behavior on null join value

https://issues.jboss.org/browse/MODE-1750

PR is not yet ready to be merged. Conflicts with Apache Jackrabbit tests. More info on JIRA.