Ignoring closed windows when collecting attributes from all windows (RC). Fixes issue 1758
Fixing typo in RegExp.test function name. Fixes issue 1666