Fix $wgGadgetsCaching = false;

Bug: 71988
Change-Id: Ib1012b4d0b0eeabb62812f35b61882bbf9733f3d