Fixes power draw not being processed if no power was available

Should address some of the issues raised in Pull Request #6080
Fixes APCs drawing more power than they can to use to charge
Merge pull request #6087 from mwerezak/power-net

Fixes a couple of bugs in apc/process()