Fix an error on empty list from chef search

Change-Id: Iacfd5614849b3885c5be833122d1f640c34ce66c