Fix how the NULL pointer check for ps and pv cards is done.