Revert Library/Homebrew/cmd/install.rb to 4b320eec.

* Fix problem when install exception got swallow and reinstall thinks it
  succeeded.
texapp 0.6.2

Closes #22342.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
elixir: style nit