Exception in Safari mobile and desktop versions

I've got a weird exception that I'm only able to reproduce on Safari, both mobile on iPhone XS iOS 13, and desktop version on MacOS Catalina Safari 13.1

I originally discovered this issue on lighterhtml version is 2.1.0, but can also reproduce it on the latest 3.1.3

Unfortunately I don't have any minimal example code to show, because I'm still working on isolating it and figuring out what's going on, but I'll definitely try create an example, once I learn more about the issue.

What I know now is that exception is provoked by client-side navigation action (navigation between different pages of my app). Here is the stack trace

NotFoundError: The object cannot be found here

	insertBefore
	append (utils.js:23)
	domdiff (index.js:80)
	anyContent (tagger.js:267:83)
	(anonymous function) (index.js:119)
	unroll (index.js:162)
	retrieve (index.js:124)
	unrollArray (index.js:182)
	unroll (index.js:154)
	unrollArray (index.js:172)
	unroll (index.js:154)
	unrollArray (index.js:172)
	unroll (index.js:154)
	unrollArray (index.js:172)
	unroll (index.js:154)
	retrieve (index.js:124)
	render (index.js:63)
	dispatch (redux.js:230)
	(anonymous function) (redux-logger.js:1:7723)
	_loop (router.service.ts:563)
	process (router.service.ts:573)
	process
	goTo (router.service.ts:471)
	next (section-content.view.ts:182)

I'm also attaching a screenshot of Safari debugger stopped on the exception, just in case it could be useful.
safari_src

I would be very grateful for any help/hints/suggestions regarding how to solve this issue.