Avoid NPE on front screen when project files and folders relations are corrupted. Refs #21910
Expire session files based by modification time instead of creation time.
Delete project files if project folder is deleted. Refs #21910.