prevent constructing File in nwdisable frame

Fix rogerwang/node-webkit#1120