Added check for empty cookbook list in knife.

Issue CHEF-3219 - 'knife cookbook list' returned a blank line when the cookbook list was empty. Added a check for an empty cookbook list.