Improve return values of Paginator::params()

Always returning an array fixes downstream fatal errors caused by merging an array onto null.

Fixes #3374