dynamodb: validate record state on failed put due to InternalServerErrorException