Fixs empty tenant exception

Just catch the IndexError to avoid process abort
Fixs unavailable container exception

To avoid program abort, we consider unavailable container as empty
Merge pull request #1 from TristanCacqueray/master

Fix empty tenant and unavailable container