fix for DuplicateKey Exception without code

mongoS doesn't return a "code", so we need to check the "err" as well