Frameworks/base: Fix potential NPE in Script

Bug: 19797138
Change-Id: I5cd9394bd2c0f7c044c1f2f24665384fa797cd97
1 file changed