Handle trailing slash during HEAD bucket