Fix bug where long collections name triggered limit.

I ran into this bug while using the shell:

```
> db.thisisareallylongcollection.insert({a:1})
ERROR: Max number of collections exceeded
Error: ERROR: Max number of collections exceeded
```

This pull request fixes this bug.