Fix variable context

Avoid attribution to the variable $newProducts inside the if. It caused the code to potentially misbehave throwing errors of:
"variable $newProducts not defined".
Merge pull request #676 from dlage/patch-1

[*] MO : blocknewproducts avoid $newProducts not defined