Fixed bug where any error in adding a new category led to no parent categories displayed in the optional dropdown