Fix error when req.body is undefined