fixes possible issues where GetHearthstoneWindow could return a no longer existing window handle