Fixed crash when incorrect body is sent by POST.