Publishing a page without a URL alias fails with 500: AssertionError in PageHooks::ensurePathautoSkipped()
**Problem**
When Pathauto is installed, publishing a new canvas_page that has no URL alias returns a 500 from `POST /canvas/api/v0/auto-saves/publish`:
`AssertionError: assert($pathauto_item instanceof PathautoItem) in assert() (line 127 of modules/contrib/canvas/src/Hook/PageHooks.php)`
Pages that already have a URL alias publish without error.
**Steps to reproduce**
1. Install Canvas 1.7.1 and Pathauto on Drupal 11.4.
2. Create a new page in the Canvas UI. Do not set a URL alias.
3. Click Publish. The request fails with a 500 and the error above.
issue