Fixes #2653: Fixed the bug that unsetting an unpopulated AR relation would trigger exception (qiangxue)