Fixing course_category update code see BT#6195