Fix compiler crash in isinstance optimization.