Improved previous fix by not allowing GetPrivateKey() to ever return null