The same error has been already fixed. Looking at the code it looks like it should not be possible for it to appear.
https://github.com/origam/origam-html/pull/213/files
The pullrequest was merged on september 9. @koki are you sure you are not using an old version of origam?