fix crash on autofill

Fix rogerwang/node-webkit#2148