Fix for use when user can select themes

Otherwise we can get `warnings.tpl` from other (than user selected)
theme.