Do not copy debug info if either argument is null