Check if type is not null when evaluating executing class type.