Fixed issue with an exception being thrown when trying to use a simple value for _id