If a certain memory allocation fails, xmlXPathIdFunction would dereference a null pointer. Closes #77.