Fix a bug when req.body === 'null'

With req.body === 'null', we have an error : Object.keys called on non-object.
Thanks to some investigations we found that params is null and in Javascript typeof null === 'object'.