Fix bug in 'pull_params' convenience routine.

Previously, if packet had only 'top-level' Params, or only grouped params,
but not both, then routine would fail with an AttributeError.