Fix NullReferenceException in content project generator.