Updated ming provider to avoid InvalidId exception

Added InvalidId exception catch to avoid exception raising on wrong _id