Fix domain errors

* Removes erroneous domain check from atan2 (infinite values are okay!)
* Adds domain check to the base for log_common19 (ruby-bug 9797)
Merge pull request #2097 from cheald/fix_math_domain_errors

Fix domain errors