Properly fixed DDC-1858. Added support for ResultVariable in NullComparisons while using HavingClause.