path.validate()

If the path is not valid (see path.isValid() for reference), make it valid by inserting an initial 'M 0 0' segment.

Valid paths are not changed. Empty paths are considered valid, so they are left unchanged by this function.

Modifies this path in-place, and returns it.