Also allow null for the collection name.

The previous commit accidentally prohibited that.