JCR-3814 make sure the ISM is in edit mode when cancel is called

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/trunk@1630363 13f79535-47bb-0310-9956-ffa450edef68