Use qdf_mem_copy only if split_prof_end is not null. CRs-Fixed: 3151563 Change-Id: I9e525383caf5fd49c22d0412996eac895811af51