[Drawing] Fix possible infinite loop
Ensure Toolkit.Type is set when initialized with Application.Initialize* APIs