Fix usage of '$' in MWReferenceSearchWidget

Easier to just use native getAttribute.

Change-Id: Ibd72eb457bb82b3b134d1eb29c4c33b3b9a7242f