Clone element before manipulating it in #getValue

Fixes: https://next.getflow.com/workspaces/1/tasks/5624838