Bug 1072341 - Invalid error displays twice

@skjindal93 this line needs indentation. In order to have just one commit in this PR after you change this, you can use `git commit --amend` when commiting your changes and then push your changes with the `-f` flag. Thanks!