No proceedings taken or had under this division shall ever be held to be invalid on the ground that the street, right-of-way, public property or any portion thereof, upon which the work or any part thereof is or was done has not been lawfully dedicated or acquired; provided, the same is lawfully dedicated or acquired, or an order for possession prior to judgment has been obtained.