fix panic missing when OnProcessPanic equals nil