issue #2404: return nullptr in Clonable::copy().
Merge pull request #3195 from dumganhar/iss2404-deprecated

issue 2404: return nullptr in Clonable::copy().