sc-hsm-tool: Fixed SEGV if no or invalid card in reader