idoutils: Add check before cleaning ido2db proxy.

Fixes #5687