Make horizontal rules appear between title and body only when both are visible