st/glx: Fix endless loop in drawable validation