In drupal 8, how do you load the node object in hook_preprocess_page() when on the node preview page?
I had a bug come up where this standard way of loading the current node object was failing on the preview page:
$node = \Drupal::routeMatch()->getParameter('node');