scd: Handle error correctly.
* scd/apdu.c (apdu_connect): Initialize variables and check an error of apdu_get_status_internal.