added NaN test for check_row_index
added doc in code for check_row_index
Merge pull request #925 from stan-dev/feature/issue-891-check-row-index-nan

Feature/issue 891 check row index nan