Another check_road_tiles problem

I've described this on the forum; can you think of a better way of fixing these problems?