This fixes a critial bug that occurs when iconifying non-existant windows.

This happened to me when I accidentally iconified the LO splash screen,
which crashed SmallWM with a segmentation fault. Adding the additional
check to make sure hints is not NULL fixes this crash.