Save and restore last returned document/document tree so it survives rotation