Fix 'pr' nil index

Signed-off-by: Valérian Saliou <valerian@valeriansaliou.name>