fix rollback_after_removed_docs.js, make gleGTID.js more robust