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 
This would be simpler as a one liner.