Fixed bug which caused script to crash when no tables exist