fix for BUG 782 - NPE in ErrorTranslator during handshake

- there is no session available before registration

Signed-off-by: Michal Rehak <mirehak@cisco.com>
Change-Id: Ib0e420a879c6512e5f86003ad9d024aee789c04d