Update of outputSGP weighted median to deal with situation where all weights are ZERO