Fixes a problem with a black box that was showing up in the editor.
Removes some duplicated code.
Merge pull request #368 from wordpress-mobile/issue/318-black-box-in-editor

Fixes a problem with a black box that was showing up in the editor.