fix placeholder when input has initial value

prevents placeholder from being `undefined` when input has an initial value.