Handle case where axis value is zero.