Fix TypeError in diff.coffee