MBug: No errors while resizing if the element disappears briefly