NXP-12588: safer code retrieving widget type configuration