Fix #904 - handle empty tag names returned by API

Fix #904 - added code to handle the rare case that an empty tag name is returned by the endpoint