check for definedness before calling ->parse

on $_[1] in sub scrub, otherwise we get:

  Use of uninitialized value in subroutine entry

which isn't helpful and fills up logs. really scrub shouldn't be
called sans a second argument, but probably a good idea to do the
right thing here too