Are midterm elections a referendum on the president?