Fix potential NPEs.

Parsers could always potentially return null, but
https://googleplex-android-review.googlesource.com/#/c/323058/ now makes
sure that the parsers return null on empty input
("".equals(input.trim()).

Change-Id: I87b87cf25e0276dd44b7bfac37b8cf55d22a9bb9
2 files changed