Fix TSR for empty path

Resulted in a panic before. Fixes #45