See #7151 for test instructions.
This PR uses the same code as in modules i.e. checking data->id.
The test has to be done on an existing category tagged to one of the content languages.
NOTE: A new category (not yet tagged to a language and saved) will still show all the existing content languages in the associations tab. That is normal until saved.
#TEST OK
Works as expected.