I would recommend starting an empty wash load and dumping a box of baking soda in; then stop the cycle and let it sit for 10 minutes. Then finish the cycle. If that doesn't eliminate the odor, try...
There are several places where water is stored in the machine and hoses, which is normal. If you do not use your machine much this water can become stagnet and pick up a smell, you can notice this...