Fix a minor bug in the vertical interpolation code (in dev).

This affected setups in which ice extends *all the way* to the top of
the computational grid.