fix handling of distribution file with empty repositories list