Fixed the preview servlet when the session has expired