Support for getEventListeners's second argument - noParents (issue 6740)