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