process_outline 0 was trying to write manifest which did not exists.

Probably it was side effect of previous merge request which conditionally generates outline file resulting `Error: Cannot open read the pages.` This patch fix this problem, additionally it close outline file if it opened.