Added checking that z is non zero to buildWarpPlaneMaps kernel