Feature/issue 891 check nonzero size nan

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