Hide reference dialog when on-wiki link is clicked.

Bug: 68337
Change-Id: I44e6828adf65f2dc2ceb7ceeb577e09851df4822