upgrade.rb: exit 1 if formulae given but none outdated

Closes #17199.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>