Added case for invalid table name