Fix for #4234

The try block is too large and hide the get_param permission error.
Also use the superuser for get_param to allow the link to be created