Fix panic in assertmysql.ErrorCode when err == nil