[DDC-2478] Support null association comparison

http://www.doctrine-project.org/jira/browse/DDC-2478