Reactive JS insertRow Cannot read property 'setAttribute' of undefined


I have build a peace of javascript thats insert a row to a table. On the table line there is a input field. When I type something in the input after I added a row I get a error: Cannot read property 'setAttribute' of undefined. Could this be that because of adding the row OS cannot bind to the correct row anymore? Any idea how to fix this? Greetz!

The OML: