Fix missing text in alert() when input field was empty