Prevent crash when reading unsupported types and raise didEncounterError delegate callback