Improve handling of NULL in aliased identifiers.