documentor: Fixed crash on doc dir refresh