Fixes for two minor issues with the pages job I noticed in the post-merge pipeline for !5469 (merged).
pages
/cc @kusma @daniels