Pass a zero instead of dereferencing a null pointer when copying one region