caught error when table is empty
Merge pull request #228 from paczian/master

caught error when table is empty