Corrects a bug that prevented themes from working correctly in the absence of a primary tag.