If mass can flow than so can energy, and vice versa. (E = mc^2)
As has been pointed out before, "mass" has two meanings. Yours is
the old one, the one I was raised on. The new one is that "mass"
means "proper mass". Proper mass is not conserved, of course.