contrib/collection3: Fix stacking with NAN values.