Sorry for the late reply. Seems like after failing to charge the battery, each time the player re-enters the charging station, the machine will always have a battery inside it.
How to reproduce the bug:
1. fail to charge
2. take the dead battery
3. get out of the charging station
4. re-enter the charging station
Result: The charging machine will have a battery in it