Fix behaviour when packages have been removed from upstream