fixed #236: create/update with empty payload -> internal server error