qom: Clean up fragile use of error_is_set() in set() methods