Prevent crash when no headers are generated.

When using the --api flag, dox will crash if it doesn't have
any markdown headers to render.
Merge pull request #121 from hughsk/missing-header-bug

Prevent crash when no headers are generated (api).