Type comparison bug. Should compare exactly null for default null parameter, not typeof undefined.