[YARN]In some cases, pages display incorrect in WebUI

The issue is caused by #1112 .