[BUG #7178] only reset the focus if there's no relatedTarget