Added missing check for AvroError in internal helper methods of AvroType.