Fix Z endstop function.

Didn't work, because the hack re-adjusting rampup and rampdown
steps was removed earlier for LOOKAHEAD.