Fix error when trying to edit a category with empty slug