Follow-up db51c53b8f. Fix already used variable name.

This caused the upload warnings to output undefined on
Special:Upload.

Bug: 40785
Change-Id: I733a5092eac21bfbfa100e0bd9aaed583ab044ab