Hack-fix build with different system/core/charger versions

Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
Merge "Hack-fix build with different system/core/charger versions" into twrp2.7