Fix range error handling in sgetspent.