Prevent undefined values returning from getWidgetFormControls