Fix category scripts not being executed after cookies accepted
Commit f353f604 changed the way the scripts were added to a page, but didn't take into account the categories options that could be applied via the settings.
When hook_page_attachments_alter() fires, perform another check for any scripts not on the current page that might exist in disabled scripts, and better handle the delimiters for category and behavior attachments.
Closes #3527482