ttxml: made alloc failure consistent - return NULL