fix bug where nil or @{} params would cause invalid signature

When setting params to @{}, the params instance variable was not being set. In turn, this caused an invalid signature to be created in the signature_base method.