Fix to check for zero s value in sign function

If r OR s are zero then recalculate both r and s until they are both non-zero values.