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

...id