MDL-25500: Fix undefined variable warning