Another $wgMFVaryResources fix

Change-Id: Iffa9f7d553d116550d172968ee0adb1891571861
Merge "Another $wgMFVaryResources fix"