settings/base: Check for errors when creating secrets folder

refs #16269