Fixed of generating warnings when it receives POST request with no data.