Relations paths generation: prevent empty relations to print as "" #13

This would make reindexing fail. See issue #13