fixing a weird crash because document itself can't be used with matchesSelector
Merge branch 'develop' of github.com:sapo/Ink into develop