guard node callback with handle scope

Part of rogerwang/node-webkit#2489