Fix EZP-22333: SQL error in tagcloud with object state policies