Fixed unbound error caused by entering in an empty search