A remark on knot groups with a center