Fixes the field formatter settings form to use the $element instead of the $form. Using $form was causing an infinite loop when adding the field through layout builder.
Closes #3349101