Fix querybuilder code if results object does not provide an actual_results_count attribute. This regression has been introduced in release 1.1.1 (fixed broken handling of limit and batch size).