[show-hint addon] Fix event delegation for UL/LI

It's possible to provide custom markup for hint elements that are LI
tags and that breaks event delegation logic that expects UL to have
text-only LI nodes. The fix improves event delegation in the way to find
nearest parent element to event target that is a hint element at the
same time.