[build][fr] fix dictionary build if corpus data is empty