fix(offline): Clear referer reference after save waiting doc (closes #4845...

...)