fix find_by_xpath

remove checking link or control when using xpath which might cause errors in some cases