Fix examine crash

Should fix #8780.