Fix for QVector ASSERT index out of range in calculatelaylines.cpp.

CalculateLaylines::getNextPoint() seemed to return garbage in release builds.