fix(query): validate package name (#9370)
### Description
Before we'd just trust that a package would exist with the name
provided. This would lead to errors when using the package but not when
constructing it. Now we actually validate it during construction.
### Testing Instructions
Added test for invalid package constructor
---------
Co-authored-by: Chris Olszewski <chris.olszewski@vercel.com>