On devices where certain PowerStats HAL data is unavailable the data logger in PowerStatsService is disabled. Check for null before attempting to write the data to incident reports. Bug: 168528724 Test: Verified tests pass on devices with and without necessary PowerStats HAL data. Change-Id: I41b4e75ff673e4c3874c1ef6041d0a0b8102aa16