Don't replace query params when req.body is null
Add a test