Fix warning: use the right API to get the component desktop id

Authored by apol on Jun 21 2018, 9:54 PM.