As part of compression, NaN values are replaced with extremely negative numbers.
I'm not sure if this can be handled in a sensible way on the compression side of things - e.g. setting them to something very positive/negative isn't sensible, setting them to zero could be misleading.