Most "flavour" are actually perceived with your sense of smell, which is why you felt like you lost the sense of taste. However things like bitter, sour, salty, sweet and umami are perceived with your tongue so you likely didn't lose those.
The cartridge is probably bitter which is why you could taste it.
If that happen again try it, you should still be able to taste salty and sweet typically.
Most "flavour" are actually perceived with your sense of smell, which is why you felt like you lost the sense of taste. However things like bitter, sour, salty, sweet and umami are perceived with your tongue so you likely didn't lose those.
The cartridge is probably bitter which is why you could taste it.
If that happen again try it, you should still be able to taste salty and sweet typically.