Remove unused variable in CollectionMetadata::isValidKey

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>