Conservation of the stress tensor in interacting quantum field theory in curved spacetimes