Fix crash when Location provider is not enabled.

bug: 32172176
Test: manual run
Change-Id: I6859e4d2d8f3774152f68de2d4c777cfd4d57520
1 file changed