Handle extra comma at end of argument list without crashing.

Fixes issue #54.