Fix leaking resource.

Default case of switch(tree_ctx->tree->lang->langID) does not destroy embed_doc. Corrected that. Also if Null check for lang is missing, so added as wbxml_tables_get_table may return NULL.