brew upgrade: improve exit codes.

exit 1 if formulae given but none outdated

Closes #17199.

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