avoid JS errors for some invalid lists

Avoid showing JavaScript error and stopping the interpreter when entering following expressions, which are invalid:

    (1 . 2)
    (let (()) 1)
    (let* (()) 1)