Handle nullable sysprop for tryParseBoolean

When mocking SystemProperties, reading a boolean value fails because the
code tries to convert it to lowercase without a null check. This changes
it so that null input is returned as a null Boolean before the
toLowerCase call.

Change-Id: Ia595341409bd927f4fa51c918fe4a052bb2bcdce
2 files changed