#199016 by blackdog, slightly modified: default_category variable was not set in category form builder