I just got it. Your method works. Another way (and I think what the chapter was trying to test) was that density is proportional to molar mass. So, this also solves it:
5.6 g L-1/0.83 g L-1(28.0 molar mass N2) = 189g of TiCl4
Therefore, TiCl4 is molecular formula.