Updated reflect_dom_object to be passed by value fixes #4122

This fixes issue #4122