Improve error handling;

I get quite a lot of empty result, I might try the search API instead of the MQL API...