fix get-firefox-tab-url so that the url is fetched more reliably

Signed-off-by: Bao Haojun <baohaojun@gmail.com>