CRM-13712 fix - DB Error on creating Smart Group with Is Empty and/or Not Empty operators via search builder

http://issues.civicrm.org/jira/browse/CRM-13712
Merge pull request #1929 from monishdeb/CRM-13712

CRM-13712 fix - DB Error on creating Smart Group with Is Empty and/or Not Empty operators via search builder