fix exception when using 'null' in comparisons (#6)