Check for existence of folders when saving receipt

Add a check for a folder's existence when saving receipts, and create
the folder if it doesn't exist. Fix an issue caused by the DNN database
having a record of a folder that didn't actually exist on the
filesystem.