eliminate crash in ipp-accelerated norm and mean functions

thanks to Matt Curfman and Aaron Kunze for the patch