Fixed NullReferenceException in MySqlDbProvider