Prevent crashes from hasCanonicalType matcher

Adding an QualType::isNull() check.