charger: check the charging_enabled at the beginning of power off charging

Checking charging_enabled flag in charging process, reboot the
device if charging is disabled to exit power off charging mode.

Change-Id: Ie2ad77ad28c95239ab7995d6193501ae7d7e66d8