I'm afraid this is a general problem in mongoBackend. I'd suggest to address as part of the hardening of the code, not in this PR.

I've issued an issue for that in https://github.com/telefonicaid/fiware-orion/issues/263, with a relatively high priority.

NTC