Would you like to add more error handling for return values from functions like the following?
Filed as internal issue #151659.