fix undef value as an ARRAY reference and warning

try as i might i couldn't replicate this issue so couldn't write a
test case, i suspect it may be a bug in Parallel::ForkManager,
nonetheless here is a fix to prevent using an undefined value as
an ARRAY ref and also a fix to a warning