Avoid divide-by-zero in step_length_positive_definite.m.