Add special case for older versions of Cairo where path data may have a
trailing "M" command, whose effect can be ignored.