qom: Fix invalid error check in property_get_str()