Handle shorter WM_HINTS

The hints vector can have length shorter than 9.
See <http://tronche.com/gui/x/xlib/ICC/client-to-window-manager/wm-hints.html>