It actually says in the manual that if you have if have it plugged into the wall and running AC at the same time the AC will bypass the batteries and pull power straight from the wall plug.
It may need to have a ground that's why it works with the cord plugged in Would like to see you plug a bonding plug into it and see if it works then. Just a hunch