Fix send error stanzas during key registration

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>