diff --git a/chef/lib/chef/client.rb b/chef/lib/chef/client.rb
index <HASH>..<HASH> 100644
--- a/chef/lib/chef/client.rb
+++ b/chef/lib/chef/client.rb
@@ -217,7 +217,7 @@ class Chef
       file_canonical = Hash.new
 
       [ "recipes", "attributes", "definitions", "libraries", "resources", "providers" ].each do |segment|
-        remote_list = parts[segment]
+        remote_list = parts.has_key?(segment) ? parts[segment] : []
 
         # segement = cookbook segment
         # remote_list = list of file hashes
Fixing bug with iterating over lwrp