Before the rebels overran northern Mali, the authorities had made preparations for a possible locust invasion.