Exception on testharness_properties access

when opening through a@target window.opener is defined but the SOP can trigger an exception if the origins don't match