Changing request.body parsing statement in router
Adding if statement in server
Moving if statement from server to handler
If payload is an empty string, handler will set it to "undefined".