Issue #1774226 by joachim: Fixed flag_field_attach_submit() assuming it's the only entity on a form, causing errors with field collections.