fixing bug if there was an error loading private key

Ignore-this: 62d262265f8db148604f27d7b9d21d0f

dereferenced null ptr.

darcs-hash:20140102030701-c21fe-97543ab86dd34e92e46ec092eb5ae4522e1998bf