Simple patch to allow at least some functionality with Chef Solo

Chef::DataBag.list triggers an error when used with Chef Solo (not sure what's the exact cause of the symptom) so a simple check allow using the non-data_bag parts with Chef Solo.