Added proper error checking when editing wikis