dont try to insert empty documents