Fix a crash bug on FLUSH TABLES during SELECT MATCH AGAINST

Redmine: fixes #2137

Reported by yoku. Thanks!!!