During a more conservative time... waaay back. A company was doing very well but the CEO had an affair. The public caught wind of the affair and the stock tanked, because people had your exact same philosophy. Those people cared about the behavior of the CEO while ignoring the metrics of the company. Warren Buffet looked at the fundamental performance of the company and saw that it was doing quite well, so he bought it at super low prices.
Eventually the stock price changed and began to reflect the fundamentals of the actual business as people forgot about the behavior of the CEO.
You shouldn't care about his erratic behavior. You should care about the business sector and the overall performance of the company.