Fix potential NPE in internal isValidTarget method.

Bug 19805383

Change-Id: Ib22d86cca5e1225b12ed39ac988824eeb9c58bbd
1 file changed