[fix bug 909875] Fix 500 error in formset validation.