Backport PR #5493: made a minor fix to one of the widget examples

Using backport_pr script