main: Fix category attachments

Lookup depends on the existence of a page with page_name = ''.