I did think about this first and my rationale was "what if there is some hidden failure condition in wnck or X11 window hints or whatever, I don't know that code very well". So actually the intention was that if there is any problem whatsoever trying to guess the icon, then fallback to the grey dot.