The cancellation of nonlocal divergences in light-cone theories