Merge pull request #2116 from dsugisawa-mixi/master

fix example of bare_api, check empty string