Issue #2507967 by jibran: \Drupal\Core\Entity\Controller\EntityViewController::buildTitle() assumes the $entity is in the render array