Check that old_schema and old_table aren't null before using them