fix crash with broken names table

Problem description: http://thread.gmane.org/gmane.comp.tex.luatex.user/4669