[compositionalfluidstate,test] 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. Changes in reference solutions are necessary due to small changes. Thanks gruenich for git-bisecting.