Fixing some logical errors

The updated validateConstraints logic in some cases prohibited
uploading a community cookbook
Merge pull request #38 from svanharmelen/dev

Fixing some logical errors