Solution
This is due to code optimization done at the back end for If statement. The workaround is as follows :
1) Go to the previous step ( the one before the If step)
2) Add the following expression
RunState.NextStep.EvaluatedConditionExpr = Nothing in the post expression as shown below :