Some error message cleanup to fix segfault when transposing sparse vector with illegal values.
Merge pull request #5191 from JuliaLang/anj/fixsparse

Some error message cleanup to fix segfault when transposing sparse vector with illegal values.