LUN-1869: Set CMS_TEMPLATES only on exceptional case in SiteIdPatchMiddleware and don't care about interfering in the exception flow (a 404 could possibly be transformed into a 500)