Fix page titles to remove trailing | when no page title given