fix handling of credit cards expiring in current month

fixes #5468