xbps-remove(8): fix assertion when the cachedir is empty.