Use FIRST and REST.

Correct a bug with referring to the CAR or a null CDR.