Added a check for a null document version for when a disconnected itemID is entered in the debug box used enter ItemIDs