open_new_inset deletes the new inset if it can not be inserted, and the handler for LFUN_TABULAR_INSET does it again. Welcome to the swamp of undefined behaviour...
*sigh* Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)