use correct precedence with `return $x || die`

The code used `return $x or die`, which means that `$x` is always
returned because `return` is higher precedence than `or`.

This was spotted by a new warning in perl 5.19.