[RFC] Fix some unchecked returns for Coverity

Just a few Coverity fixes to reduce the count on the defects so the more important ones can be handled.
`u_save` (called by `u_save_cursor`) is problematic. Not really sure what to do here in case of error.