Only add defined variables to mongoid.yml

- Deals with case of empty user and passwd with no auth