Fix exception invalid mongoid in actionPutOneTask