Fix uncatched exception and save the URI supplied

Hi,

We meet sometimes exceptions with the dummy blocks. And especially with Internet Explorer.
We have not yet figured out exactly why but in the meantime, this patch prevents customers to see this exception.


Kind regards,
Alexandre Jardin.