#241570 by effulgentsia and merlinofchaos: Fixed Theme preprocess functions do not get retained when using patterns.