filter empty paths because otherwise it breaks the resolver