Issue #3254174 by penyaskito, iStryker: Use COALESCE instead of ISNULL for ensuring compatibility with postgres