Issue #2208611 by tim.plunkett: Allow subclasses of \Drupal\Core\Entity\Query\QueryBase to override getClass().