BUG: VS10/11 debug assertions for null pointer for std::copy

In VS10 and 11, the Runtime Library checks for a null pointer to the
input array when when the number of elements to copy is zero and raises
an exception.

This patch checks if the array has a null pointer, and if so, skips the
std::copy.

Change-Id: I1ad106d7c2903bcc7b59f0c128ce8cb591404294
Merge topic 'vs11_std_copy_debug_assertion'

1a3fef2 BUG: VS10/11 debug assertions for null pointer for std::copy