pacman: Work around crash introduced upstream

https://bugs.archlinux.org/task/42736