Fixed a bug on non-required field sometime invalid

An input field with NULL as a value was not working properly. The
validation seems more valid with a scope.$apply as well.