fix for formula node parameter parsing in if stmt
test for formula node with if
Merge pull request #1838 from Steell/formula-node

Fixed formula node not parsing all If branches for parameters: MAGN-3640