Ignore forms marked for deletion when validating the max number of forms

This is for ticket #20403 (https://code.djangoproject.com/ticket/20403).