[#30725] Exception thrown for empty path. Thanks Elin Waring.