fix minor console viewable error log during empty search submit
fix typo (code cosmetic)