workaround assert redefinition in older mongo versions

Thanks to Bernhard bvogginger for pointing that out.