[sql-hint addon] Work slightly better on namespaced table names

Issue #2323