fix use of undef as ARRAY ref

in normalize_params