Fix a segfault that could occur if an 'optimize' command was issued on an FTS table that contained at least one row but zero terms.