Improved: getLinksUrl() method by using a Set

This will further help solving EZP-20762
Fixed EZP-20762: SQL syntax errors in Legacy Gateway of XmlTextStorage with PostgreSQL
Merge pull request #316 from patrickallaert/EZP-20762

Fixed EZP-20762: SQL syntax errors in Legacy Gateway of XmlTextStorage with PostgreSQL