Return "undefined" and "false" instead of throwing "TypeError".

This fixes the issue #51.