Fix error thrown when compiling empty Gistbook.

Resolves #303