Remove duplicated SKIP checks from mysqli tests (#7858)
Fix bug GH-7746 (mysqli_sql_exception->sqlstate is inaccessible) Closes GH-7747