@geraintluff, introduced a custom format to accept null or any accepted data type as input value. But somewhere in the tv4 code the null check is being executed even before it actually checks for the format and hence tv4 throws a null error before checking the custom format.
Can any changes be done to move the null check in the library in such a way that addFormat or defineKeword do not throw error even if we send null as the data.