That's not a "traditional" bug.
I think that happens when you have lets say a City A with access to (for example)uranium. Now you build units, which require uranium. Now you have 0 of that resource of course. When your City A gets captured by another civ now you get a negative resource count.