Handle null values in TryConvert