Fixes bug where the server crashes if no data is POST'd.