pacman/util.c: fix segfault when replace in strreplace is NULL
pactest: add test for empty replacements strings