Fix precedence problem with pending join conditions

http://www.doctrine-project.org/jira/browse/DC-944