BUG: check success of PyArray_DescrFromType in PyArray_InnerProduct

closes gh-5065
Merge pull request #5104 from juliantaylor/inner-fix

BUG: check success of PyArray_DescrFromType in PyArray_InnerProduct