[4.2] Fixed An Issue With The Form Builder

Add check if old input is an array and grab the first value before passing it as an attribute.

A potential fix for the issue with using square brackets in the name of a non-checkable field.

---
Issue #6401.