Refactor valid length checks
Fix unreachable code in matchNumbers

If a valid number was entered, such as 6011, but then changed, to say
6012, we wouldn't update the image due to that code block being
unreachable, as helpers.getCreditCardType() returns undefined on
non-existent cards, not an empty string.