Fix for config loader in FormHelper And WidgetRegistry

Related to #5163