check for attribute existance in policies
Merge pull request #402 from olivierbeytrison/fix-policies

check for attribute existance in policies