todomvc: fix removeTodo()

Fixes following error while removing a task: Breaking on exception: type 'bool' is not a subtype of type 'void' of 'function result'.