[BUGFIX beta] paramsFor: don’t clobber falsy params

Fixes #5275

and other minor cleanup
Merge pull request #5312 from machty/no-clobber-falsy-qp

[BUGFIX beta] paramsFor: don’t clobber falsy params