Move the defensive programming out of print_card...

... and into the functions that it calls.