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.
Merge pull request #357 from ionux/master

Fix to check for zero s value in sign function