fix: spack cherry-pick py-htgettoken: use dict get()
At some point, we'll just combine these multiple cherry-picks into a single merge commit when available upstream.
At some point, we'll just combine these multiple cherry-picks into a single merge commit when available upstream.