Fix type error on file diff

Fixes an error - when paths was not set it is not iterable and there was a type error, breaking some features. Bug introduced in 1dc74aef6045befdc7d38203cf87851dde542415