Correctly compute b-tagging weight errors