Fix charger tracking if bme is not available on a device

Based on the connection state we decide if a charger is connected or not.
When a USB cable is connected we should be charging (except for error conditions).

Fixes: JB#6580

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>