Recover the ability to create a profile not backed by a file

This was lost in commit 76fa15536d1aa7b98bbc9805bfb302fea34e90e4 and is needed
for CUPS for virtual profiles and also for the self test suite.