handle undef as method argument [fix #22]

Handle undef by warning and returning undef like core Perl functions.