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. Thanks!