I gave this topic a boring title, and I ask my questions even more boring-ly. But this is a serious question... can anyone help?

Why does the engine crash instead of the function 'ent_getmesh' returning NULL, when you try to access an invalid mesh? I only ask you because the manual says that it should return NULL, but it only crashes.