Partial fix for #13761.

If `fensure` is NULL, the local `loc` should be initialized by `this->loc`.