Backport 58330:
Fix Coverity #158: Check the correct variable.
1 file changed