I made this edit and now instead of "United Kingdom articles missing geocoordinate data", the article correctly shows "Aberdeen articles missing geocoordinate data" in its cat list,. However, it's still listed at Category:United Kingdom articles missing geocoordinate data and is not listed at Category:Aberdeen articles missing geocoordinate data. This is a serious bug, since it could lead to categories being deleted as "empty", when in fact they're not. It can also lead to people vainly hunting through a page to find the code that puts it in the category that it is not a member of.
See also Wikipedia:Village pump (technical)#Category membership issues.