Feature/issue 891 check row index nan

#### Summary:
Added NaN test and doc in code for check_row_index.

#### Intended Effect:
Added NaN test and doc in code for check_row_index.

#### How to Verify:
Run test/unit/math/error_handling/matrix/check_row_index

#### Side Effects:
None.

#### Documentation:
Added doc in the code.

#### Reviewer Suggestions:
Anyone.