test for null-values before deserializing with AbstractType.compose