[BUG] Check existence of config tables before SELECT on them