Ticket/22628

Resolves [#22628](https://code.djangoproject.com/ticket/22628). Set formsets to take into account whether there is initial data when calculating how many min_num forms to display (instead of just adding min_num to extra).