You can buy health upgrades even when you have no gold, making your gold just go negative.
Working on a fix for the whole health upgrade situation as we speak. :)
Fixed! :)