Added defensive condition for widget constraints (minor only.)