Use main world after first DOM window was closed

Fix rogerwang/node-webkit#2171