[Bug 41914] incorrect execute path within nested if (else) statement