Prevent underflow when iterating backwards
Prevent underflow when iterating backwards

The -1 being done here on a size_t could cause an underflow, leading to a segfault in theory.

Contributes to issue CURA-7828.

Ultimaker/CuraEngine,Ultimaker/CuraEngine