Check that length of input path is not 0 in path optimizer.
Use standard deviation stored as an attribute.