Fixed issue #1973

https://github.com/rogerwang/node-webkit/issues/1973
Some attributes should be available even after the frame is destroyed.
Here, the frame may have been destroyed and the frame pointer is null. This checking is done by 'BindingSecurity::shouldAllowAccessToNode' (like openerAttributeSetterCustom does), therefore the best approach is to move this block behind.