Obvious in hindsight. Only noticed this while debugging an issue where this line was seeing a string exception, which I think is coming from react-native-background-upload.
getMessageForException is meant to be a general-purpose utility, so I think it's good for us to handle this.