St Mirren and Dundee United shared the spoils after a hard-fought 0-0 draw in Paisley, in which the Terrors had John Rankin sent off late on.