Return "undefined" and "false" instead of throwing "TypeError".
Merge pull request #52 from albertoleal/master

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