Allow for NaN fill values in stack/mosaic.

Fixes the bug discovered by @ajdawson in SciTools/iris#971.