Fix some (possibly hypothetical) error handling issues.
Merge branch 'develop' of https://github.com/boostorg/math into develop