Fixed Provisioning API handling for empty and malformed payload