search-provider: be robust to the shell calling get_subresults directly