SI-4980 isInstanceOf does not do outer checks