Fix error when cancelling load of a trusted device certificate.