Fix static context error in Drupal::get_database_connection()