migrator: Fix timescaledb references in rewriter
Created by: efritz
Partial fix to #39863 (closed). This PR removes some troublesome references to timescaledb and migrations tables that might not necessarily exist when stitching migrations together.
Test plan
Existing unit tests.