Fixed force close when queries was empty, instead show an error to user.