Attempt to optimize "x IS NULL" and "x IS NOT NULL" expressions when x is a column with a NOT NULL constraint.  This addresses the performance issue
described by post a5fc33cf9d8f4ff5].