Added logic in runner.py to deal with zero-length chain nicely in .thin_chain and .thin_flatchain