Avoid template override when output page is not HTML