Blender importer: tessface generated before accessing it

When importing an object in Blender, it crashes with an index 0 out of range accessing me.tessfaces. I generated the tessfaces(me.update(tessface = True)), now looks that imports correctly.