They do. I'm guessing there was a bug in finding a place to safely pull over?
So even if the vision/pathfinding believes there is nowhere to park and nowhere else to turn, it will still coast to a stop in a way that is not inherently less-safe than a more-normal car running out of gas and stalling on the road.