Firefox has had an issue open for years that it's trivial for a website to create invisible tabs.
Maybe a min-width on tabs would solve?
(Min-width is also already present, but doesn't ensure the tab is visible when inactive/unhovered if it has neither a visible icon or title; it'll just be some blank space in the tab bar.)
As it happens, a patch is just landing that will handle more cases of "invisible but non-empty" titles, so that change should appear in a couple of months or so once it works through the release channels.