Support using `null` as ObjectId for GridStore

Regarding the GridStore constructor:

When `null` is supplied as ObjectId and an extra filename is passed, the GridStore will not try to query by filename.

This patch fixes this.