fix upgrade test error when no tags match

since trunk matches no tags this caused an error
as the test was trying to upgrade to 'None'