Added a check for an empty result

In my case, this was caused when YQL returned an error because the site had robots.txt file that excluded Yahoo.