Prevents empty entry being submited when hitting enter in search bar.