fix URL when bucket is empty

close #27
add the tests for the commit a99400c7bb04b88b6a88597e29aa5189fdc16568

close #27
add testEmptyUrlGenerator to test empty bucket with url generator
Merge pull request #30 from Vinelab/fix/#27

fix URL when bucket is empty