mergerepo_c: Fix segfault when a package without sourcerpm is part of metadata and --koji option is used