Fix min repeat for edit

This should hopefully allow repeat group min of 0 on edits of existing
records as well as new records.

Jaanus is testing.
Minified form.js
Merge pull request #991 from Sophist-UK/sophist_fix_for_min_repeat_group_0

Sophist fix for min repeat group 0