Fixed bugs with edit_session and doclist.js loadDoc