Fixed inconsistency when new folder is created.

Ensured files and folders collections are initialized as empty sets
instead of null for all providers.