ReplaceTables: Fix null checks

Should be ||