fix($state): allow null to be passed as 'params' param
Merge pull request #684 from dlukez/state-null-fix

fix($state): allow null to be passed as 'params' param