fix to issue 726 - is null and isnot null operators had incorrect types resulting in error for particular queries

@anpete 
Why hard-code this?