Fixes #4470: Using both permissions() and permissions_recurse() into a M...

...etaTechnique will create a metadata.xml not valid

See http://www.rudder-project.org/redmine/issues/4470