ECMS-6460: Files in documents folder inside a web content must not be en...

...rolled to be Publication Lifecycle

Fix description:
- Correct condition to check if a node should be enrolled to publication lifecycle
should it be?
path = path.substring(0, path.lastIndexOf("/"));