CPF and CNPJ validation was incorrect, fixes #17367