Add placeholder workaround, fixes #5644

Add placeholder as value in the search box
in browsers without placeholder support.
Change it when the realm is changed, remove it
on focus, add it on blur