LPS-32031 Additional fix for XSS in related asset selection

Hi Zsolt,

This is the fix we've discussed earlier today.

Regards,
Vilmos