Fixed un-needed page checking when adding attach button to editor