Adds guards for missing theme.