Fixed issue in gradebook categories not showing the right sub-total weight for comparisons - refs BT#6003