Fix error when attributes don't exist at all

Issues DE186
Fix newer foodcritic thinking spec is a cookbook

Issues DE186
Merge pull request #99 from claco/DE186

Merged automatically by jenkins after successful build test