Add missing null check to String::ToCharArray

Bug: 25641543

(cherry picked from commit 04e983a83113d8321d45e1915f4aa9f4bd619647)

Change-Id: Ib391e612d8d4391218fd90aa895ac3ea5c3a7114
3 files changed