Fixed the inferred table name for HABTM within a schema

Fixes #14824.
Merge pull request #14965 from eric-chahin/issue_14824

Fixed the inferred table name of a HABTM auxiliar