Allow nil as "null" for js calls.