Use HashMap::find_with_or_insert_with in DocumentHelpers::register_named_element (fixes #3193)
auto merge of #3577 : ttaubert/servo/issue/3193-named-element-mangle, r=jdm

Should probably use HashMap::entry() but that doesn't seem to be available with servo's current rust snapshot.

r? @Ms2ger