[corlib] Fix incorrect assert