If the boundary is null, make sure to set one before we call base.WriteTo()