fix(textfield): improved logic to determine in md-input has a value