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>
Merge pull request #11 from lipidity/master

Handle shorter WM_HINTS