Popup: Set tolerance both when pre-enhanced and otherwise. Fixes #6481 - popup: issues with creating pre-rendered markup and popups outside of a page
Demos: Popup: Mark pre-rendered popup with data-enhanced="true". Re #6481.
Integration tests: Popup: Mark pre-rendered popup with data-enhanced="true". Re #6481.