Fix `Illegal offset type` in toplytics_get_results()