Merge change 2591 into donut

* changes:
  Check if the ownerView is still attached to window in refreshPositionVariables.