Do not crash when checking whether an instance type is of a given fundamental.