`Berkshelf::CookbookStore#cookbook` returns `nil` if the cookbook with that version is not found. So we have to call `compact`, otherwise our array is not empty.