Fix the panic on runnig with --devtools due to a change in how type_id gets resolved since the last rustc upgrade.
auto merge of #4147 : jdm/servo/devtoolspanic, r=Manishearth

...ets resolved since the last rustc upgrade.