Guard against calling points.back() on an empty vector when all well path points are filtered out (e.g. due to the zmin check), which previously caused undefined behavior/crash.