Solve Data Container DoCopy NullPointerException for non-nullable types