Remove string-cast in CM_Service_MongoDb::getNewId()

closes #1365