Avoid consecutive return statements

This change keeps static checkers happy.

This change originally came from Heimdal's bundled copy of libtommath.

This was originally part of #18 . I'm splitting it into its own pull request for easier review and acceptance.