Good question: the battery here doesn't look like it had any room for expansion so it wouldn't be worse per se. But normally you want a little bit of room around a battery, I guess a thin foam liner would allow for that and would still allow you to pot the whole thing.
Worst case, a bloating battery cracking open a plastic enclosure or being able to vent gas through the gaps in one would be preferable too, right?