fix: segfault in 'window_get_element_byName'