Don't join to non-existent tables

Closes #3557142

Merge request reports

Loading