Fix arithmetic exception when pass an empty mat with IPP option on.