component/bt: add check value and length for esp_ble_gatts_get_attr_value(uint16… See merge request !1110