Fix badge form in overlay after validation error

If categories were edited from the category overview page, validation
error resulted in a broken overlay due to lost format information.

I don't know why this didn't occur when the overlay has been opened from
other sites, e.g. the proposal listings.