COOK-4364 fix yum_repository delete action fails

This pull request is to address issues outlined in https://tickets.opscode.com/browse/COOK-4364