[Media Common] add mediacopy nullptr check

add nullptr check for fix MAVD issue
3 files changed