Fix TypeError bug

Fixes https://github.com/evancz/elm-repl/issues/7