Fix dispose not being called for text input editors.

Review URL: https://codereview.appspot.com/45140044

git-svn-id: http://blockly.googlecode.com/svn/trunk@1582 c400ca83-b69d-9dd7-9705-49c6b8615e23