This is fixed in xdg-desktop-portal 1.17. There's no way to check xdg-desktop-portal version so it's either not having support for passing last used path at all in sandbox or encountering the bug on old systems.