fix an UnboundLocalError when the release file is empty #7773
4 files changed