Fixed potential exception when passing invalid data to the URL

see https://community.contao.org/de/showthread.php?37668-Produktleser-per-Ajax-updaten&p=243991#post243991