Fixed js error when search query isn't present.
Fixed js error when search query isn't present.

HospitalRun/hospitalrun-frontend,HospitalRun/hospitalrun-frontend,HospitalRun/hospitalrun-frontend,HospitalRun/hospitalrun-frontend