Fixed first entry getting removed when displaying available buckets
When listing buckets, the first entry is misinterpreted as the "bucket name" and gets removed. This change checks whether we are listing buckets or a bucket's contents in order to prevent that first-entry suppression.
Note: the only way to list buckets is using the alternative (path-based) URL