When drawing in surface mode if the stroke z-depth was not valid, the stroke was created, but it was not visible because location was something illogical. Now, if the z-depth cannot be calculated, the stroke is calculated as it was done in other modes.