Fix error in OCL minmaxloc

Fix small bug in ocl version of minmaxloc.