Prevent crash during import of privkeys.

@obscuren please check if this was commented out for a reason