Fix memory leak in mapistore_indexing_record_add_fmid

leak when type was invalid parameter