Bugfix, avoid capturing traits

Avoids trying to capture traits dialog when there is not traits support
on Component.