Fix exception when POST is sent with an empty body