Fix a segfault when there is a distribution upgrade available