Fix StopIteration when there are no tables in metadata.
Merge pull request #171 from SlivTime/patch-1

Fix StopIteration when there are no tables in metadata.