Performance improvements and behavorial changes for DOM.get_node_by_attr