Currently implicitly_shard_accessed_collections.js overrides getCollection for passthrough suites implicitly runs shardCollection in case the collection is not sharded or does not exist. However, in case the namespace is a view, the command will fail with CommandNotSupportedOnView since sharding a view is not allowed.
We should simply return the collection in case is a view.