Fixed regression with constructing TypeDescriptor from null Class

Issue: SPR-11354