Handle ProgrammingError during tables-exist test