mcrd: converted assert to proper error handling
mcrd: converted assert to proper error handling

frankmorgner/OpenSC,AktivCo/OpenSC,LudovicRousseau/OpenSC,frankmorgner/OpenSC,mouse07410/OpenSC,LudovicRousseau/OpenSC,dengert/OpenSC,hongquan/OpenSC-main,rickyepoderi/OpenSC,dengert/OpenSC,CardContact/OpenSC,OpenSC/OpenSC,fabled/OpenSC,metsma/OpenSC,Jakuje/OpenSC,metsma/OpenSC,CardContact/OpenSC,Jakuje/OpenSC,viktorTarasov/OpenSC-SM,LudovicRousseau/OpenSC,frankmorgner/OpenSC,hhonkanen/OpenSC,OpenSC/OpenSC,CardContact/OpenSC,viktorTarasov/OpenSC-SM,hhonkanen/OpenSC,Jakuje/OpenSC,frankmorgner/OpenSC,philipWendland/OpenSC,rickyepoderi/OpenSC,OpenSC/OpenSC,hongquan/OpenSC-main,philipWendland/OpenSC,fabled/OpenSC,hhonkanen/OpenSC,viktorTarasov/OpenSC-SM,hongquan/OpenSC-main,mouse07410/OpenSC,metsma/OpenSC,dengert/OpenSC,fabled/OpenSC,rickyepoderi/OpenSC,Jakuje/OpenSC,fabled/OpenSC,AktivCo/OpenSC,mouse07410/OpenSC,AktivCo/OpenSC,philipWendland/OpenSC