Fix policy resource name validation (#1359)