Fix: Fail automatic road construction if one of the flags are missing.

This fix alleviates crashes when the pathfinder does not produce a valid path.