[Ide] Fix crash in components view

Fixes bug 21292 - Regression: adding component throws InvalidCastException
from ICommandDelegatorRouter.GetDelegatedCommandTarget()