adding failing Phi test for src/stan/math/functions/Phi.hpp
fixes #850. throws exception on nan input
updating call to error handling to use C++ style static_cast instead of C style cast
Merge pull request #851 from stan-dev/feature/issue-850-erf-nan-input

Fixes #850. Feature/issue 850 Phi nan input