Fixed ElementRt#replace_with method