Check that tablename is not null