More precise getHintElement() function

Be more precise in identifying hint element, to prevent misbehavior in cases where the rendered hint element contains an LI in its child nodes. With this change, only those elements that are direct children of the hints element are considered hint elements for event handing purposes.