Add conditional tags to avoid template errors.