fix "undefined" in case of mref search values
fixed styling + accidental commit
Merge pull request #1868 from bartcharbon/master

fix "undefined" in case of mref search values