fixes #1558 Ensure if we publish before save as we store appname and an id
Merge pull request #1602 from ScottDowne/t1558

fixes #1558 Ensure if we publish before save as we store appname and an ...