fixing a weird crash because document itself can't be used with matchesSelector
fixing a weird crash because document itself can't be used with matchesSelector

rcarmo/Ink,pedrocorreia/Ink,birthdayalex/Ink,Anmo/Ink,mubassirhayat/Ink,rcarmo/Ink,pedrocorreia/Ink,sapo/Ink,Anmo/Ink,sapo/Ink,birthdayalex/Ink,sapo/Ink,Anmo/Ink,pkdevbox/Ink,pedrocorreia/Ink,rcarmo/Ink,birthdayalex/Ink,mubassirhayat/Ink,pkdevbox/Ink,pkdevbox/Ink