Plugin should no longer cause recursion loop when inserting the same document to itself.