Fix amf core dump when calling null pointer callbacks of gpClCpm->cpmToAmsCallback