Fix execute NULL pointer by changing to check packaged callback.