In debug build, 'Text' object deletion results in an assert then abort

Hi,
with my Blender built in debug mode, when I create a Text object (with bpy.data.texts.new(“txt”)) and then delete it (with bpy.data.texts.remove(…)), I fall on the assert BLI_assert(id->us == 0); of lib_id_delete.c:515 which results in abort().
This seems due to BKE_text_add() (text.c:163) forcing a ‘real’ user on the object (see the comment).
So I’m not sure this can be considered as a bug, but it prevents using addons that remove Text objects with a blender in debug build.
Is there a way to avoid this in a clean way (i.e. without removing the assert) ?