Bugfix: commands crashed when query block root wasn't accesible from cursor position