Notwithstanding paragraph (3) of this subsection, compensation payable for a child that would otherwise end because the child has reached 18 years of age shall continue if he is a student as defined by section
8101 of this title at the time he reaches 18 years of age for so long as he continues to be such a student or until he marries.