Fixes the get_modal method of Hildon2 window manager