Update input.js

This commit solves de issue 5936 (https://github.com/angular/angular.js/issues/5936), by just retoring the previous condition in the negative form.