Avoid firing script when textbox input is empty