fix: remove lines that should have been removed in query PR

The query overhaul removed the overloading of the "object" query parameter as either agent or activity, and
this was understood by reviewers -- these lines make no sense here and should have been deleted.

I think everyone missed this on review because these lines weren't added or removed.