The tax imposed under this subchapter upon certain income of nonresidents shall apply to all such income actually received by such nonresident regardless of when such income was earned. If the nonresident is reporting on the accrual basis it shall apply to all such income which first became available to the nonresident so that the nonresident might demand payment thereof regardless of when such income was earned. The duty to withhold imposed under this subchapter upon withholding agents shall apply only to amounts paid after June 30, 1937.