Make sure that no URI parsing exceptions are leaked