Fix #9139 - Don't crash on MSSQL relations