set payload to nil if the saved document string is empty (reset's to default state instead of breaking the document