[compositionalfluidstate] Fix bug introduced in commit 15029.
Fixes a bug with conditional jump over uninitialized values, which was intoduced by generalizing how massFractions are set. This keeps the generalization, but reverts everything else to what it has been before.
Thanks gruenich for git-bisecting.