[nim] Made getting visualisation by ID from session more robust