changed return value of applicationContext.collectionName

Now, a valid collection name is always returned, even if the application name prefix contains invalid characters