Fix optional arg handling for importprivkey.