Throw proper exception upon missing discriminator field value