MSSQL: Fix for handling spatial tables with no FID columns (#7254)