mongo: don't insert empty documents