Fix a session defect when upload with empty data and without login.