For path, validate flow control variable hasPath

If hasPath is false on invalid data, then the empty path
would be set. This situation should leave the path unset.

Bug: skia:14163
Change-Id: Ib5bbea1f12738adbc26bc51addca8269b15b2339
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/660216
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2 files changed