fix problems with Safari (`208:217: execution error: Safari got an error: Can’t get every tab of window id 4762. (-1728)`)