Fix build for non-sled bed auto levelling

This function should only be used with sled, not all bed auto levelling.

Looks like Charles missed just one ifdef in commit d2fcb3ee