Cosmological cancellation of the vacuum energy density