log query errors, also catch empty sentence/docs results and handle them well (#100)