Notwithstanding subparagraphs (A) and (B), the term “qualified beneficiary” does not include an individual whose status as a covered employee is attributable to a period in which such individual was a nonresident alien who received no earned income (within the meaning of section
911
(d)(2)) from the employer which constituted income from sources within the United States (within the meaning of section
861
(a)(3)). If an individual is not a qualified beneficiary pursuant to the previous sentence, a spouse or dependent child of such individual shall not be considered a qualified beneficiary by virtue of the relationship of the individual.