J3.x: Fix undefined variable in pull #2195
Merge pull request #2245 from mahagr/master

J3.x: Fix undefined variable in pull #2195